package cn.exrick.xboot.modules.system.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author Exrick
 */
@Data
@Entity
@Table(name = "t_system")
@TableName("t_system")
@ApiModel(value = "子系统的快捷入口信息")
public class System extends XbootBaseEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "系统名")
    private String sysName;
    @ApiModelProperty(value = "备注")
    private String description;
    @ApiModelProperty(value = "网址")
    private String url;
    @ApiModelProperty(value = "接口")
    private String urlInterface;
    @ApiModelProperty(value = "内网地址")
    private String intranetUrl;
    @ApiModelProperty(value = "图片url")
    private String imageUrl;
    @ApiModelProperty(value = "状态0：启用，-1禁用")
    private Integer status;
    @ApiModelProperty(value = "排序值")
    @Column(precision = 10, scale = 2)
    private BigDecimal sortOrder;

    @ApiModelProperty(value = "子系统模块标识")
    private String moduleName;

    @ApiModelProperty(value = "数据种类")
    private String infoType;
    @ApiModelProperty(value = "服务器短信预警开启关闭状态  start 、stop")
    private String warningStatus;
    @ApiModelProperty(value = "内网外网网络权限  开启：1 关闭： 0")
    @Column(columnDefinition="tinyint default 0")
    private Integer acStatus=0;


    @ApiModelProperty(value = "服务连接状态  1:正常  2：异常" )
    private String connStatus;

    @ApiModelProperty(value = "检查服务连接状态的接口地址" )
    private String checkInterfaceAddr;

    @TableField(exist = false)
    @ApiModelProperty(value = "待办已办code")
    private transient String code;

    @TableField(exist = false)
    @ApiModelProperty(value = "infoID")
    private transient String infoID;

}